/* 班级管理专用样式 */

/* 班级卡片样式 */
.grade-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.grade-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.grade-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.grade-card .card-title {
    color: white;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 5px;
}

.grade-card .card-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
}

.grade-card .info-row {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.grade-card .info-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    min-width: 80px;
}

.grade-card .info-value {
    color: white;
    flex: 1;
}

.grade-card .card-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    margin-top: 15px;
}

/* 班级详情页样式 */
.grade-detail-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    box-shadow: 0 10px 40px rgba(240, 147, 251, 0.3);
}

.grade-detail-card .detail-header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
}

.grade-detail-card .detail-header h2 {
    color: white;
    font-size: 2em;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.grade-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.grade-detail-card .detail-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.grade-detail-card .detail-section h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.grade-detail-card .detail-row {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.grade-detail-card .detail-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    min-width: 100px;
}

.grade-detail-card .detail-value {
    color: white;
    font-weight: 500;
}

/* 班级表单样式 */
.grade-form-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3);
    color: white;
}

.grade-form-container .form-header {
    text-align: center;
    margin-bottom: 30px;
}

.grade-form-container .form-header h2 {
    color: white;
    font-size: 1.8em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.grade-form-container .form-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1em;
}

.grade-form .form-group label {
    color: white;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.grade-form .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1em;
    transition: all 0.3s ease;
    color: #333;
}

.grade-form .form-control:focus {
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    outline: none;
}

.grade-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* 班级删除页面样式 */
.grade-delete-container {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(255, 107, 107, 0.3);
    color: white;
    text-align: center;
}

.delete-warning-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.delete-warning-card .warning-icon {
    font-size: 4em;
    color: #ffeb3b;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.delete-info-list {
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.delete-info-list p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.delete-info-list strong {
    color: #ffeb3b;
    min-width: 80px;
}

/* 按钮样式增强 */
.grade-form .btn-primary {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.grade-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.grade-form .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
}

.grade-form .btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .grade-form-container,
    .grade-delete-container {
        padding: 20px;
        margin: 10px;
    }
    
    .grade-detail-card .detail-header {
        padding: 20px 0;
    }
    
    .grade-detail-card .detail-header h2 {
        font-size: 1.5em;
    }
    
    .grade-badge {
        padding: 8px 16px;
        font-size: 1em;
    }
}

/* 统计信息卡片 */
.grade-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 1.1em;
    opacity: 0.9;
}